$OpenBSD: patch-lib_facter_util_partitions_rb,v 1.4 2015/09/01 07:23:35 jasper Exp $

Cache df/mount output to prevent running these programs 3 times for every partition found.
https://github.com/puppetlabs/facter/pull/1119

--- lib/facter/util/partitions.rb.orig	Mon Aug 31 19:03:29 2015
+++ lib/facter/util/partitions.rb	Mon Aug 31 19:03:38 2015
@@ -44,4 +44,16 @@ module Facter::Util::Partitions
   def self.available?
     !self.list.empty?
   end
+
+  def self.flushable?
+    implementation.flushable?
+  end
+
+  def self.flushed?
+    implementation.flushed?
+  end
+
+  def self.flush!
+    implementation.flush!
+  end
 end
